package com.youmoula.mtsq

import android.app.Application
import androidx.compose.ui.platform.LocalContext
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider


class StickModelFactory() : ViewModelProvider.Factory {

    override fun <T : ViewModel> create(modelClass: Class<T>): T {
        if (modelClass.isAssignableFrom(ReplyHomeViewModel::class.java)) {
        return super.create(modelClass)
        //return ReplyHomeViewModel() as T
        }
        throw IllegalArgumentException("Unknown ViewModel class")
    }
}